package model

import "time"

//会员数据结构体定义
type Member struct {
	Id           int64     `gorm:"pk autoincr" json:"id"`
	UserName     string    `gorm:"varchar(20)" json:"user_name"`
	Mobile       string    `gorm:"varchar(11)" json:"mobile"`
	Password     string    `gorm:"varchar(255)" json:"password"`
	RegisterTime time.Time `gorm:"datetime" json:"register_time"`
	Avatar       string    `gorm:"varchar(255)" json:"avatar"`
	Balance      float64   `gorm:"double" json:"balance"`
	IsActive     int8      `gorm:"tinyint" json:"is_active"`
	City         string    `gorm:"varchar(10)" json:"city"`
}
